{extend name="main/index" /}
{block name="main"}
<style>
    th,td{
        text-align: center;
    }
</style>
<div class="content-page">
    <div class="content">
       <table class="table table-hover bg-white-1">
           <tr>
               <th>用户Id</th>
               <th>用户名</th>
               <th>角色</th>
               <th>操作</th>
           </tr>
           {volist name="data" key="k" id="v"}
           <tr>
               <td>{$v['id']}</td>
               <td>{$v['name']}</td>
               <td>{:implode($v['role'],'-')}</td>

               <td>
                   <a href="{:url('users/read/'.$v['id'])}" class="btn btn-xs btn-default ">查看用户角色</a>
                   <a href="{:url('users/show/'.$v['id'])}" class="btn btn-xs btn-info ">分配角色</a>
                   <a href="{:url('users/edit/'.$v['id'])}"class="btn btn-xs btn-success ">编辑</a>
               </td>
           </tr>
           {/volist}
       </tabl>
    </div>
</div>

{/block}